﻿@using Web
@model Web.Crew

@{
    ViewBag.Title = "Details";
}

<h2>Group details</h2>

<fieldset>
    <legend>@Html.DisplayFor(model => model.name)</legend>


    <div class="display-label"><b>Creator</b></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Userowner.name)
    </div>

    <div class="display-label"><b>Members:</b></div>
@foreach (User user in Model.members)
{
    <div class="display-field">
        @user.name
    </div>
}

</fieldset>
<p>
    @Html.ActionLink("Join group","Join",new { id = Model.id }) | 
    @Html.ActionLink("Back to Search", "Index")
</p>
